package com.usian.admin.service;

import com.usian.model.admin.dtos.ChannelDto;
import com.usian.model.admin.pojos.AdChannel;
import com.usian.model.common.dtos.ResponseResult;

public interface AdChannelService {
    public ResponseResult findByNameAndPage(ChannelDto channelDto);

    public ResponseResult save(AdChannel adChannel);

    /**
     * 根据Id查询对应频道信息
     * @param id
     * @return
     */
    public ResponseResult findById(Integer id);

    /**
     * 根据Id 修改对应频道信息
     * @param adChannel
     * @return
     */
    public ResponseResult update(AdChannel adChannel);

    /**
     * 根据id 删除数据
     * @param id
     * @return
     */
    public ResponseResult delete(Integer id);

    /**
     * 批量删除Id
     * @param ids
     * @return
     */
    public ResponseResult deletes(Integer[] ids);

    public ResponseResult findAll();

}
